package com.smart.gui;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import com.jgoodies.forms.factories.FormFactory;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.RowSpec;

public class About_Frame extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private JLabel txtDevelopersStevenSpeer;
	private JLabel txtFinalAssignment;
	private JLabel txtSweSoftware;
	private JLabel txtDueMarch;

	/**
	 * singleton pattern -- getInstance
	 */
	private static About_Frame uniqueInstanceForm;

	public static synchronized About_Frame getInstance() {
		if (uniqueInstanceForm == null) {
			try {
				uniqueInstanceForm = new About_Frame();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return uniqueInstanceForm;
	}

	/**
	 * Create the frame.
	 */
	public About_Frame() {
		setResizable(false);
		setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
		setBounds(25, 25, 463, 186);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane
				.setLayout(new FormLayout(new ColumnSpec[] {
						FormFactory.UNRELATED_GAP_COLSPEC,
						ColumnSpec.decode("default:grow"), }, new RowSpec[] {
						FormFactory.PARAGRAPH_GAP_ROWSPEC,
						RowSpec.decode("20px"),
						FormFactory.RELATED_GAP_ROWSPEC,
						RowSpec.decode("20px"),
						FormFactory.RELATED_GAP_ROWSPEC,
						RowSpec.decode("20px"),
						FormFactory.RELATED_GAP_ROWSPEC,
						RowSpec.decode("20px"),
						FormFactory.RELATED_GAP_ROWSPEC,
						FormFactory.DEFAULT_ROWSPEC, }));

		txtDevelopersStevenSpeer = new JLabel();
		txtDevelopersStevenSpeer
				.setText("Developers: Steven Speer and Joshua Goshman ( Group #2 )");
		contentPane.add(txtDevelopersStevenSpeer, "2, 2, fill, top");

		txtFinalAssignment = new JLabel();
		txtFinalAssignment.setText("Final Assignment");
		contentPane.add(txtFinalAssignment, "2, 4, fill, top");

		txtSweSoftware = new JLabel();
		txtSweSoftware
				.setText("SWE 5510: Software Maintenance -- Florida Institute of Technology");
		contentPane.add(txtSweSoftware, "2, 6, fill, top");

		txtDueMarch = new JLabel();
		txtDueMarch.setText("Due: March 11, 2012");
		contentPane.add(txtDueMarch, "2, 8, fill, top");
	}
}
